g_signal_connect (priv->gesture, "released", G_CALLBACK (multipress_released_cb), button);
g_signal_connect (priv->gesture, "update", G_CALLBACK (multipress_gesture_update_cb), button);
g_signal_connect (priv->gesture, "cancel", G_CALLBACK (multipress_gesture_cancel_cb), button);
- gtk_event_controller_set_propagation_phase (GTK_EVENT_CONTROLLER (priv->gesture), GTK_PHASE_BUBBLE);
+ gtk_event_controller_set_propagation_phase (GTK_EVENT_CONTROLLER (priv->gesture), GTK_PHASE_CAPTURE);
priv->gadget = gtk_css_custom_gadget_new_for_node (gtk_widget_get_css_node (GTK_WIDGET (button)),
GTK_WIDGET (button),
GtkButton *button = GTK_BUTTON (widget);
GtkButtonPrivate *priv = button->priv;
- if ((event->window == button->priv->event_window) &&
- (event->detail != GDK_NOTIFY_INFERIOR))
- {
- priv->in_button = TRUE;
- gtk_button_update_state (button);
- }
+ priv->in_button = TRUE;
+ gtk_button_update_state (button);
return FALSE;
}
GtkButton *button = GTK_BUTTON (widget);
GtkButtonPrivate *priv = button->priv;
- if ((event->window == button->priv->event_window) &&
- (event->detail != GDK_NOTIFY_INFERIOR))
- {
- priv->in_button = FALSE;
- gtk_button_update_state (button);
- }
+ priv->in_button = FALSE;
+ gtk_button_update_state (button);
return FALSE;
}
gtk_widget_size_allocate_with_baseline (child, &child_allocation, baseline);
}
- if (gtk_widget_get_realized (widget))
- {
- GtkAllocation border_allocation;
- gtk_css_gadget_get_border_allocation (gadget, &border_allocation, NULL);
-
- gdk_window_move_resize (GTK_BUTTON (widget)->priv->event_window,
- border_allocation.x,
- border_allocation.y,
- border_allocation.width,
- border_allocation.height);
- }
-
gtk_container_get_children_clip (GTK_CONTAINER (widget), out_clip);
gdk_rectangle_union (out_clip, &check_clip, out_clip);
}